const requireApi = require.context(
  //目录
  '.',
  //是否查询子目录
  false,
  //匹配文件
  /.js$/
)
let modules = {}
requireApi.keys().forEach((key,index) => {
	if(key === './index.js') return
	// console.log(key)
	Object.assign(modules,requireApi(key))
})
// console.log(modules)
export default modules